package com.cloudlead.common.lang.api;

import java.util.Map;

/**
 * Created by dean on 2015/8/2.
 */
public final class RequestHeaderUtils {

    public static String getRequestId() {
        return getRequestHeaders().get(ActionRequest.REQUEST_ID);
    }

    public static String getAccessToken() {
        return getRequestHeaders().get(ActionRequest.ACCESS_TOKEN);
    }

    public static Map<String, String> getRequestHeaders() {
        return RequestHeaderContext.getRequestHeaders();
    }
}
